package com.eastmelon.util;

import java.io.FileInputStream;
import java.io.IOException;

public class TestUtil {
	public static void main(String[] args) {
		String newString="";
		try {
			FileInputStream in=new FileInputStream("D://02.jpg");
			byte[] b=new byte[in.available()]; 
			in.read(b);
			System.out.println(b.length);
			String imgStr=Base64.encode(b);
			System.out.println(imgStr.length());
			newString = ImgCompress.resizeImage(554, 368, 0.8f, imgStr,"gif");
			System.out.println(newString.length());
			System.out.println(Base64Util.GenerateImageType(newString));
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		
	}
}
